package com.demo.security.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;

/**
 * 用户模型
 */
public class SysUser {

    private Long id;

    private String username;

    @JsonIgnore
    private String password;

    private boolean enabled = true; // 账户是否可用

    public SysUser() {
        super();
    }

    public SysUser(Long id, String username, String password, boolean enabled) {
        super();
        this.id = id;
        this.username = username;
        this.password = password;
        this.enabled = enabled;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public boolean isEnabled() {
        return enabled;
    }

    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
    }

}